#include <stdio.h>
#include <stdlib.h>

typedef int ElementType;
typedef struct Node 
{
    ElementType Data;
    struct Node* Next;
} Node, *PtrToNode;
typedef PtrToNode List;

void Print_List(List L)
{
    PtrToNode p = L;
    while (p->Next != NULL) {
        p = p->Next;
        printf("%d ", p->Data);
    }
}

int main()
{
    List L = (List) malloc(sizeof(struct Node));
    L->Next = NULL;

    PtrToNode p = (PtrToNode) malloc(sizeof(struct Node));
    p->Data = 1;
    p->Next = NULL;
    
    PtrToNode s = L;
    while (s->Next != NULL) {
        s = s->Next;
    }
    s->Next = p;

    Print_List(L);
    return 0;
}
